package com.tmy.mapper;

import com.tmy.entity.Hotel;
import com.tmy.entity.Room;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RoomMapper {

    /**
     * 新增
     */
    int insert(Room room);

    /**
     * 删除
     */
    int deleteById(Integer id);

    /**
     * 修改
     */
    int updateById(Room room);

    /**
     * 根据ID查询
     */
    Room selectById(Integer id);

    /**
     * 查询所有
     */
    List<Room> selectAll(Room room);

    @Select("select * from room where name = #{name}")
    Room selectByName(String name);
}